package cc.chinagps.gateway.client.protocol;


import cc.chinagps.gateway.client.UnitClient;
import cc.chinagps.gateway.client.packet.BasePacket;

public interface Decoder {
    UnitClient getClient();

    void setClient(UnitClient client);

    boolean preHandle(BasePacket packet) throws Exception;

    void handlerPacket(BasePacket packet) throws Exception;

    void handlerPacket(BasePacket packet, byte[] data) throws Exception;

    void postHandle(BasePacket packet) throws Exception;
}
